import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from "react-redux"
import { HashRouter as Router, Route, Switch} from 'react-router-dom'
import 'antd-mobile/dist/antd-mobile.min.css'

import store from "./redux/store"
import Main from './containers/main/main'
import Login from './containers/login/login'
import Register from './containers/register/register'

ReactDOM.render(
  <Provider store={store}>
    <Router>
      <Switch>
        <Route path="/login" component={Login} />
        <Route path="/register" component={Register} />
        <Route component={Main} />
      </Switch>
    </Router>
  </Provider>,
  document.getElementById("root")
)
